<html>

<head>
	<meta http-equiv="Content-Type"
	content="text/html; charset=UTF-8"/>
	<meta name="layout" content="main" />
	<title>Login</title>
</head>

<body>
	<g:if test="${session?.user}">
		<% response.sendRedirect("${request.contextPath}/")%>
	</g:if>
	<div >
		<g:if test="${flash.message}">
			<div class="message">${flash.message}</div>
		</g:if>

		<g:form action="authenticate" method="post" >
			<div class="dialog" style="min-width: 276px; width: 326px; margin: 100px auto; border: none; padding: 10px 46px 10px 30px; border: 1px solid #d9d9d9; border-radius: 10px; ">
				<h1 style="">Sign in</h1>
				
				<div class="fieldcontain">
					Login Id:					
					<br />
					<g:textField name="login" id="login" style="width: 100%"/>					
				</div>

				<div class="fieldcontain">				
					Password:		
					<br />		
					
					<g:passwordField id="password"  name="password" style="width: 100%" />
				</div>
				
				<div style="width: 100%; padding: 10px 0">
					<input type="submit" value="Login" style="padding: 4px 12px; background-color: #ABBF78; color: #fff; border-radius: 4px;"/>
					
					<g:link style="text-decoration: none;" action="resetPassword">Forgot password?</g:link>
					
				</div>
			</div>			
		</g:form>
	</div>
</body>
</html>